package com.service.business.trading.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.business.trading.controller.rep.TradingSpotTradeRep;
import com.service.core.rest.request.PageRequest;
import com.service.core.rest.response.CommonPageRep;
import com.service.dao.model.TradingSpotTrades;
import com.service.match.common.entity.SpotTradeVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


/**
 * 币币交易成交记录
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2020-02-05 11:10:01
 */
public interface TradingSpotTradesService extends IService<TradingSpotTrades> {

    Map<String, BigDecimal> getActualTimePrice();

    TradingSpotTrades getLastTrade(String symbol);

    SpotTradeVo getLastTradeVo(String symbol);

    CommonPageRep<TradingSpotTradeRep> pageSpotTrades(String orderNo, PageRequest pageReq);

    List<TradingSpotTrades> listTrades(Integer orderId, Boolean isBuy);
}

